package cn.lcsjsxy.yxz.day15.abstractexercises;

public class Manager extends Employee{

    //对于Manager类来说，他既是员工，还具有奖金(bonus)的属性

    private double bonus; //钱

    public Manager(double bonus) {
        this.bonus = bonus;
    }
    public Manager(int id, String name, double salary, double bonus) {
        super(id, name, salary);
        this.bonus = bonus;
    }

    @Override
    public void work(){
        System.out.println("管理员工,提高效率");
    }

}
